package picture2013.p11_16;

public class Cross extends Figure {

    private int size;
    private char c;

    public Cross(int size, char c) {
        this.size = size;
        this.c = c;
    }

    public void draw(Picture picture, int x0, int y0) {
        for (int i = -size; i <= size; i++) {
            picture.drawPoint(x0 - i, y0 - i, c);
            picture.drawPoint(x0 - i, y0 + i, c);
        }
    }

}
